package com.ht.temp.service;

import com.ht.temp.entity.DayReport;
import com.ht.temp.entity.MonthReport;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-24
 */
public interface IMonthReportService extends IService<MonthReport> {
    //删除
    int deleteByPrimaryKey(Integer monthId);

    //插入
    int insertSelective(MonthReport record);

    //查询报表单次
    MonthReport selectByPrimaryKey(Integer monthId);

    //查询一年内的月报表
    List<MonthReport> getMonthReportByYear(Integer deviceId, String startTime, String endTime);

    //查询月报表
    List<MonthReport> selectByMonthReport(MonthReport report);

    //根据天报表查询月报表
    List<DayReport> selectByDayReport();

    //按年查询报表信息
    List<MonthReport> selectYearReport(String searchYear, Integer deviceId);
}
